/**app.wxss**/
@import "./assets/styles/variables.less";
@import "./assets/styles/img.less";
@import "./assets/styles/iconfont/iconfont.wxss";

.container {
  padding: 20rpx 40rpx;
  height: 100%;
}
.pure-blue-bg {
  background-repeat: no-repeat;
  background-size: 100% 230rpx;
}
page {
  background: #F3F6FA;
  padding-bottom: 1rpx;
  word-break: break-all; // 兼容英文数字不换行
  height: calc(100% - constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  height: calc(100% - env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
}

view,
scroll-view {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  color: transparent;
}

navigator {
  width: 100%;
}

// 登录背景
.login-bg {
  // background-image: @login-bg;
  background-size: 100% 100%;
  height: 530rpx;
  display: flex;
  align-items: center;
  justify-content: center;

  .left {
    position: absolute;
    width: 100%;
    padding-left: 40rpx;

    .iconfont {
      color: #fff;
    }
  }

  image {
    width: 302rpx;
    height: 82rpx;
  }
}

.edit-input {
  height: 104rpx;
  background: #FFFFFF;
  border-radius: 8rpx;
  padding: 0 30rpx;
}

input {
  caret-color: #247FFF;
}

button {
  padding: 0;
}

button[size='mini'] {
  height: 78rpx;
  line-height: 78rpx !important;
  border-radius: 39rpx;
}

button.gray-btn {
  background: #F3F6FA;
  width: 100% !important;
  height: 98rpx;
  border-radius: 49rpx;
  border: 2rpx solid #0060EB;
  line-height: 98rpx;
  color: @blue-font;
  padding: 0;
}

button.normal-btn {
  background: @blue-gradient;
  width: 100% !important;
  height: 98rpx;
  line-height: 98rpx;
  color: #FFFFFF;
  border-radius: 49rpx;
  padding: 0;
}

button.edit-btn {
  width: 100% !important;
  height: 98rpx;
  background: @blue-gradient;
  border-radius: 49rpx;
  color: #FFFFFF;
  line-height: 98rpx;
  margin-top: 110rpx;
  padding: 0;
}

// 我的简介
.personal-intro {
  /* background-color: #0099F7; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40rpx 0 50rpx;
  background: @blue-gradient;
  box-shadow: 0 10rpx 16rpx 0 rgba(21, 122, 239, 0.42);
  border-radius: 8rpx;
  height: 240rpx;
  position: relative;
  margin-bottom: 40rpx;
  color: #fff;

  .personal-img {
    border: 10rpx solid #fff;
    border-radius: 50%;
    overflow: hidden;
    width: 110rpx;
    box-shadow: 0px 10px 16px 0px rgba(21, 122, 239, 0.42), 0px 4px 20px 0px rgba(0, 98, 236, 0.56);
    height: 110rpx;

    image {
      width: 100%;
      height: 100%;
    }
  }
  .real-name {
    font-size: 36rpx;
    font-family: SimHei;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 200rpx;
  }

  .personal-medal {
    font-size: 24rpx;
    margin-top: 12rpx;
    width: 260rpx;
    height: 44rpx;
    background: linear-gradient(350deg,rgba(255,255,255,0.00) 15%, rgba(255,255,255,0.28) 96%);
    border-radius: 33rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    .dots{
      position: absolute;
      top: -2rpx;
      right: 8rpx;
      width: 12rpx;
      height: 12rpx;
      background: #ff7a7a;
      border: 1px solid #ffffff;
      border-radius: 17rpx;
    }
    .count{
      position: absolute;
      top: -14rpx;
      right: 8rpx;
      border-radius: 20rpx;
      color: #fff;
      display: inline-block;
      font-size: 14rpx;
      padding: 0 8rpx;
      text-align: center;
      white-space: nowrap;
      background: #ff7a7a;
      border: 1rpx solid #fff;
    }
    >image{
      width: 42rpx;
      height: 44rpx;
    }
    .text{
      margin-left: 14rpx;
      height: 33rpx;
      opacity: 0.9;
      font-size: 24rpx;
      font-weight: 400;
      color: #ffffff;
      line-height: 33rpx;
    }
    .arrow{
      font-size: 16rpx;
      margin-left: 8rpx;
    }
  }

  .info-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 124rpx;
  }

  .personal-energy{
    width: 180rpx;
    height: 65rpx;
    line-height: 65rpx;
    color: #fff;
    font-size: 26rpx;
    font-weight: 500;
    padding-left: 56rpx;
    display: flex;
    align-items: center;
    .rightArrow{
      width: 0;
      height: 0;
      border-top: 8rpx solid transparent;
      border-left: 12rpx solid #b3d3ff;
      border-bottom: 8rpx solid transparent;
      margin-left: 10rpx;
    }
  }

  .bg-shadow {}
}

// 产品列表
.train {
  .card-item {
    padding: 30rpx;
    margin-top: 20rpx;
    background: #fff;
    box-shadow: 0 6rpx 10rpx 0 rgba(13, 84, 132, 0.11);
    border-radius: 20rpx;
    display: flex;
    align-items: center;

    .train-img {
      width: 162rpx;
      height: 162rpx;
      border-radius: 10rpx;
    }

    .train-intro {
      width: calc(100% - 162rpx);
      margin-left: 20rpx;

      .train-title {
        font-size: 32rpx;
        height: 45rpx;
        color: #333;
        font-weight: bold;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }

      .train-tag {
        display: flex;
        overflow: hidden;
        margin-top: 8rpx;

        .tag {
          padding: 5rpx 10rpx;
          margin-right: 10rpx;
          color: @blue-font;
          font-size: 22rpx;
          background: #E4EFFF;
          border-radius: 4rpx;
          max-width: 132rpx;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }

      .train-des {
        font-size: 26rpx;
        height: 37rpx;
        color: #999;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }

      .train-btm {
        position: relative;
        height: 55rpx;
        font-size: 28rpx;
        color: #FFA412;
      }

      .train-btn {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 140rpx;
        height: 55rpx;
        min-height: auto;
        line-height: 55rpx;
        border-radius: 25rpx;
        background: @blue-gradient;
        color: #fff;
        padding: 0;
        font-size: 24rpx;
      }
    }
  }
}

// 简介/客户详情
.intro-wrap {
  padding: 30rpx 34rpx;

  .item {
    position: relative;
    height: 104rpx;
    line-height: 104rpx;
    padding: 0 68rpx 0 30rpx;
    margin-bottom: 20rpx;
    background: #fff;
  }

  .item-label {
    width: 51%;
    float: left;
    color: #111111;
  }

  .item-value {
    width: 49%;
    float: right;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    color: #555555;
    text-overflow: ellipsis;
  }

  .in-access:after {
    content: " ";
    display: inline-block;
    height: 6px;
    width: 6px;
    border-width: 2px 2px 0 0;
    border-color: #c8c8cd;
    border-style: solid;
    -webkit-transform: matrix(.71, .71, -.71, .71, 0, 0);
    transform: matrix(.71, .71, -.71, .71, 0, 0);
    position: relative;
    top: -2px;
    position: absolute;
    top: 50%;
    margin-top: -4px;
    right: 30rpx;
  }
}

// 客户画像
.tag-item {
  padding: 8rpx 22rpx;
  border-radius: 10rpx;
  color: #fff;
  position: relative;

  .iconfont {
    color: #FF6262;
    font-size: 34rpx;
    width: 34rpx;
    line-height: 17px;
    height: 34rpx;
    position: absolute;
    right: -17rpx;
    top: 12rpx;
    border: 2rpx solid;
    border-radius: 19rpx;
  }

  .num-box {
    display: inline;
    padding: 0 5px;
    background: #fff;
    line-height: 4.53vw;
    border-radius: 2.23vw;
    color: #93B7FE;
    font-size: 3.73vw;
    margin-left: 5px;
  }
}

.education .tag-item {
  background: linear-gradient(90deg, #F2B254 0%, #F6C986 100%);
}

.occupation .tag-item {
  background: linear-gradient(270deg, #59A7ED 0%, #4EA8FA 100%);
}

.children .tag-item {
  background: linear-gradient(270deg, #0099F7 0%, #0061E3 100%);
}

.house_property .tag-item {
  background: linear-gradient(90deg, #6488D3 0%, #6A94EA 100%);
}

.family .tag-item {
  background: linear-gradient(90deg, #58B189 0%, #7CC6A5 100%);
}

.hobby .tag-item {
  background: linear-gradient(270deg, #B2CAFA 0%, #88B0FF 100%);
}

.vehicle .tag-item {
  background: linear-gradient(270deg, #3DD8FC 0%, #1CCAF3 100%);
}

.annual_income .tag-item {
  background: linear-gradient(90deg, #FF7A1B 0%, #F18C44 100%);
}

.portrait {
  position: relative;
  height: 50vh;
  background: #FFFFFF;
  box-shadow: 0px 2rpx 15rpx 0px rgba(4, 79, 151, 0.28);
  border-radius: 8rpx;
  margin-top: 20rpx;
  text-align: center;

  image {
    height: 100%;
  }

  .portrait-tag {
    position: absolute;
  }

  .education {
    top: 56.41%;
    left: 62.32%;
  }

  .occupation {
    right: 72.14%;
    top: 68.69%;
  }

  .children {
    top: 29.66%;
    right: 76.54%;
  }

  .house_property {
    top: 38.21%;
    left: 66.86%;
  }

  .family {
    top: 19.03%;
    left: 71.85%;
  }

  .hobby {
    top: 74.07%;
    left: 59.24%;
  }

  .vehicle {
    right: 69.21%;
    top: 48.28%;
  }

  .annual_income {
    top: 13.1%;
    right: 63.49%;
  }
}

// 训练遮罩

.first-time-tip {
  width: 100%;
  height: 100%;
  // display: flex;
  // justify-content: center;
  // align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 9000;

  .first-time-text {
    position: absolute;
    bottom: calc(20rpx + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    height: 344rpx;
    width: 296rpx;
    // background: @first-time-bg;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    line-height: 83rpx;
    text-align: center;
    color: #fff;
    font-size: 36rpx;
  }

  .countdown-text-bg {
    width: 568rpx;
    height: 465rpx;
    // background: @countdown-bg;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    line-height: 465rpx;
    text-align: center;
    font-size: 160rpx;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -284rpx;
    margin-top: -232.5rpx;

    .countdown-text {
      // background-image: linear-gradient(270deg, #0061E3 0%, #0099F7 100%); -webkit-background-clip:text;
      // color: transparent;
      color: @blue-font;
    }
  }

  .ready-img {
    // background: @ready;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 247rpx;
    height: 34rpx;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -123.5rpx;
    margin-top: 220rpx;
  }
}

// 陪练背景
.board-bg {
  // background: @board-bg;
  background-repeat: no-repeat;
  background-size: 100% 170rpx;
}

.detail-bg {
  // background: @detail-bg;
  background-repeat: no-repeat;
  background-size: 100% 700rpx;
}

.long-board-bg {
  background: @board-bg;
  background-repeat: no-repeat;
  background-size: 100% 270rpx;
}

//
.placeholder {
  color: #CCC;
}

button {
  display: flex;
  justify-content: center;
  align-items: center;

  &[disabled] {
    background: linear-gradient(270deg, #7CB4FF 0%, #8BD4FF 100%);
    color: #fff !important;
  }
}

/* 提交加载icon动效 */
.loading {
  width: 2.24vh;
  height: 2.24vh;
  position: relative;
  margin-right: 1.86vw;

  .line {
    width: 2px;
    height: 26%;
    background-color: #fff;
    position: absolute;
    left: calc(50% - 1px);
    -webkit-animation: loading 1s infinite;
    animation: loading 1s infinite;
  }

  .line1 {
    background-color: #fff;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-animation-delay: .3s;
    animation-delay: .3s;
  }

  .line2 {
    top: 9.33%;
    left: 65%;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-animation-delay: .4s;
    animation-delay: .4s;
  }

  .line3 {
    top: 37%;
    left: 73%;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    -webkit-animation-delay: .5s;
    animation-delay: .5s;
  }

  .line4 {
    bottom: 9.33%;
    left: 66%;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    -webkit-animation-delay: .6s;
    animation-delay: .6s;
  }

  .line5 {
    bottom: 0;
    -webkit-animation-delay: .7s;
    animation-delay: .7s;
  }

  .line6 {
    bottom: 9.33%;
    left: 14%;
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
    -webkit-animation-delay: .8s;
    animation-delay: .8s;
  }

  .line7 {
    top: 37%;
    left: 0;
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -webkit-animation-delay: .9s;
    animation-delay: .9s;
  }

  .line8 {
    top: 9.33%;
    left: 14%;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-animation-delay: 1s;
    animation-delay: 1s;
  }

  @-webkit-keyframes loading {
    0% {
      background-color: rgba(255, 255, 255, 0.5);
    }

    50% {
      background-color: #fff;
    }

    100% {
      background-color: rgba(255, 255, 255, 0.5);
    }
  }
}

/* 陪练通用样式 */
.train-wrap {
  height: 100%;
  width: 100%;
  // position: relative;
  display: flex;
  // align-items: center;
  justify-content: center;

  .scroll-wrap {
    // background: @cpic-logo no-repeat center center #FFFFFF;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #FFFFFF;
    background-size: 100%;
    // background-size: 450rpx 122rpx;
  }

  .train-dialog {
    font-size: 28rpx;
    padding: 40rpx 40rpx 20rpx 40rpx;
    // min-height: 100%;
    // height: 922rpx;
    height: 100%;

    .robot-d {
      display: flex;
      justify-content: flex-start;
      width: 100%;

      .robot-img image {
        width: 60rpx;
        height: 60rpx;
        margin-right: 24rpx;
      }

      .robot-content {
        max-width: calc(100% - 168rpx);

        .robot-word {
          padding: 30rpx 30rpx 30rpx 40rpx;
          background: #E5F3FF;
          border-radius: 0 20rpx 20rpx 20rpx;
          display: flex;
          justify-content: space-around;
          position: relative;

          image {
            width: 21rpx;
            height: 26rpx;
            margin-top: 8rpx;
            position: absolute;
            left: 14rpx;
          }
        }
      }

      margin-bottom: 27rpx;
    }

    .point,
    .tips {
      padding: 25rpx 20rpx;
      margin: 0 84rpx 27rpx;
      border-radius: 9rpx;
      min-height: 96rpx;

      .tips-label,
      .point-label {
        float: left;
        width: 84rpx;
        height: 40rpx;
        margin-right: 14rpx;
        background: #ffffff;
        border-radius: 31rpx;
        line-height: 38rpx;
        text-align: center;
      }
    }

    .tips {
      background: #ebfdf6;
      border: 1rpx solid #d9f3e9;

      .tips-label {
        border: 2rpx solid #4dd659;
        color: #4dd659;
      }
    }

    .point {
      background: #FDF5EB;
      border: 1rpx solid #F3EAD9;

      .point-label {
        border: 2rpx solid #FEA41C;
        color: #FEA41C;
      }
    }

    .customer-d {
      display: flex;
      justify-content: flex-end;
      width: 100%;
      margin-bottom: 27rpx;
      position: relative;

      .customer-content {
        max-width: calc(100% - 168rpx);
      }

      .customer-word {
        padding: 30rpx 40rpx 30rpx 30rpx;
        background: #1799FF;
        color: #fff;
        border-radius: 20rpx 0 20rpx 20rpx;
        display: flex;
        justify-content: space-around;
        position: relative;

        image {
          width: 21rpx;
          height: 26rpx;
          margin-top: 8rpx;
          position: absolute;
          right: 14rpx;
        }
      }

      .customer-img {
        width: 60rpx;
        height: 60rpx;
        margin-left: 24rpx;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;

        image {
          width: 100%;
          height: 100%;
        }
      }

      .try-again {
        position: absolute;
        left: 0;
        top: 50rpx;
        color: #0061e3;
        font-size: 22rpx;
        text-align: center;
      }
    }

    .score-table {
      margin: 0 84rpx;
    }
  }

  .record-btn {
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 157rpx;
    border-radius: 0 0 8rpx 8rpx;
    .acitveMargin{
      margin-left: 216rpx;
    }
    &::before {
      content: '';
      height: 1rpx;
      width: 100%;
      background: #EEEEEE;
      position: absolute;
      top: 0;
    }

    .record image {
      width: 130rpx;
      height: 130rpx;
    }

    .record-cover {
      position: absolute;
      top: 0;

      image {
        width: 110rpx;
        height: 110rpx;
      }
    }

    .tips,
    .skip {
      width: 114rpx;
      height: 112rpx;
      display: flex;
      align-items: center;
      justify-content: center;

      &.active {
        // box-shadow: 0px 9px 27px 0px rgba(0, 109, 238, 0.12);
      }
    }

    // .wx-switch-input{
    //   width:114rpx !important;
    //   height:57rpx !important;
    //   background: #4DD659 !important;
    //   border: #4DD659 !important;
    //   border-radius: 29rpx;
    // }
    // /*白色样式（false的样式）*/
    // .wx-switch-input::before{
    //     width:114rpx !important;
    //     height: 57rpx !important;
    // }
    // /* 中间的小圆球 */
    // /*绿色样式（true的样式）*/
    // .wx-switch-input::after{
    //     width: 31rpx !important;
    //     height: 31rpx !important;
    //     position: absolute;
    //     top: 50%;
    //     right: 13rpx;
    // }
    .btn-item {
      width: 114rpx;
      height: 57rpx;
      background: #8dafe1;
      border-radius: 29rpx;
      &.active{
        background: #fff;
      }
      .btn-item-text {
        font-size: 22rpx;
        line-height: 57rpx;
        color: #fff;
        text-align: center;
      }

      &.none {
        background: none;
      }
    }

    .iconfont {
      color: #8DAFE1;
      font-size: 57rpx;
    }
  }

  .tips-wrap {
    // position: absolute;
    // width: calc(100% - 60rpx);
    width: 622rpx;
    // bottom: 148rpx;
    // padding: 52rpx 30rpx 20rpx;
    padding: 52rpx 0 20rpx;
    margin: 0 30rpx;
    background: #fff;
    height: auto;
    box-shadow: 0 9rpx 27rpx 0 #ccc;
    font-size: 26rpx;
    line-height: 46rpx;

    .close-icon {
      position: absolute;
      right: 30rpx;
      top: 14rpx;
    }
  }

  .nick-name {
    font-size: 24rpx;
  }

  .nick-name.customer {
    text-align: right;
  }
}

/* 陪练轮次 */
.train-round {
  display: flex;
  width: 100%;
  height: 12rpx;
  position: relative;

  .round-text {
    position: absolute;
    width: 87rpx;
    height: 50rpx;
    border-radius: 25rpx;
    border: 2rpx solid #E7EDF8;
    right: 0;
    top: -70rpx;
    background: #fff;
    font-size: 24rpx;
    color: #999;
    text-align: center;

    .round-current {
      color: #111;
      font-size: 30rpx;
    }

    &:after {
      position: absolute;
      content: "";
      width: 0;
      height: 0;
      left: 33rpx;
      bottom: -10rpx;
      border-top: 10rpx solid #fff;
      border-left: 10rpx solid transparent;
      border-right: 10rpx solid transparent;
    }
  }

  .train-step {
    display: inline-block;
    height: 12rpx;
    background: #f5f5f5;

    &.active {
      background: #17AAFF;
    }
  }
}

/* 陪练样式 */
.train-container {
  .header {
    position: relative;
    margin-bottom: 20rpx;
    display: flex;
    align-items: baseline;

    // margin-top: 50rpx;
    .title {
      font-size: 42rpx;
      font-weight: 500;
      color: #111;
    }

    .subtitle {
      font-size: 26rpx;
      font-weight: 400;
      color: #999;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      max-width: 300rpx;
    }

    .change-scene {
      position: absolute;
      right: 0;
      width: 192rpx;
      height: 50rpx;
      background: #FFFFFF;
      border-radius: 25rpx;
      border: 2px solid #E7EDF8;
      top: 0;
      margin-top: 16rpx;
      color: #0061E3;
      font-size: 24rpx;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .train-wrap {
    height: calc(100% - 96rpx);
    background: #fff;
    position: relative;

    .train {
      width: 100%;
    }
  }
}

.score-table {
  border: 1px solid #E6EEF9;
  border-radius: 8rpx;
  position: relative;

  .title {
    line-height: 97rpx;
    background: #F2FBFF;
    font-weight: bold;
    font-size: 30rpx;
    border-radius: 8rpx 8rpx 0 0;
    padding-left: 24rpx;
  }

  i {
    position: absolute;
    right: 24rpx;
    top: 0;
    z-index: 9;
    color: #DDDDDD;
  }

  .table-list {
    display: flex;
    justify-content: space-between;
    padding: 0rpx 24rpx;
    font-size: 26rpx;
    color: #111111;
    background: #fff;
  }

  .match {
    line-height: 78rpx;
    width: 140rpx;
    margin-right: 40rpx;
  }

  .desc {
    width: 140rpx;
    // margin-right: 120rpx;
  }

  .desc-item {
    margin-top: 20rpx;
  }

  .Points {
    line-height: 78rpx;
    width: 54rpx;
  }

  .each-point {
    line-height: 78rpx;
    // margin-left: 24rpx;
    width: 93rpx;
    text-align: right;
  }
}

/* 暂无数据 */
.no-data {
  height: 350rpx;
  margin-top: 100rpx;
  // background: @no-data;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;

  .no-data-text {
    font-size: 26rpx;
    font-weight: 400;
    color: #B4BAC3;
    line-height: 26rpx;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20rpx;
  }
}
.row-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-clamp-3 {
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}